FIND_PATH(CImg_INCLUDE_DIR CImg.h $ENV{HOME}/.local/include)

IF (CImg_INCLUDE_DIR)
   SET(CImg_FOUND TRUE)
ENDIF (CImg_INCLUDE_DIR)

IF (CImg_FOUND)
   IF (NOT CImg_FIND_QUIETLY)
      MESSAGE(STATUS "Found CImg: ${CImg_LIBRARY}")
   ENDIF (NOT CImg_FIND_QUIETLY)
ELSE (CImg_FOUND)
   IF (CImg_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find CImg")
   ENDIF (CImg_FIND_REQUIRED)
ENDIF (CImg_FOUND)
